package com.li.mapper;

import com.li.pojo.Leave;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface LeaveMapper {
  //获取离校总数
  int getLeaveTotal(Map<String,Object> queryMap);
  
  //获取所有离校
  List<Leave> findLeaveList(Map<String,Object> queryMap);
  
  //添加离校
  Integer addleave(@Param("leave") Leave ba);
  
  //删除
  Integer deleteById(@Param("id") String id);
  
}
